home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / flight-of-the-museum.swf / scripts / engine / dynamicObjects / Explosion.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  670 b   |  28 lines

  1. package engine.dynamicObjects
  2. {
  3.    import engine.BitmapLibrary;
  4.    
  5.    public class Explosion extends DynamicObject
  6.    {
  7.        
  8.       
  9.       public function Explosion()
  10.       {
  11.          _bmdArray = BitmapLibrary.Clips.DYN_Explosion;
  12.          super(_bmdArray[0]);
  13.          _animationMethod = ANIM_METHODS.PlayOnce;
  14.          _frameSpeed = 1;
  15.          _drawMethod = DMETHOD.Fast;
  16.          _objectType = OBJ_TYPES.FX;
  17.          r = Math.random() * (2 * Math.PI);
  18.          z = 2.5;
  19.          _currentFrame = 1 + Math.floor(Math.random() * 30);
  20.       }
  21.       
  22.       override public function fStep() : *
  23.       {
  24.          super.fStep();
  25.       }
  26.    }
  27. }
  28.